package Stream;

import java.util.stream.Stream;

public class Stream8 {
    public static void main(String[] args) {
        Stream<String> stream1 = Stream.of("狗","人","鸡","鸭","鹅");
        Stream<String> stream2 = Stream.of("张三","李四","王五","赵六","田七","张九龄");
        Stream<String> stream = Stream.concat(stream1,stream2);
        stream.forEach(s-> System.out.println(s));
    }
}
